home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 January: Mac OS SDK / Dev.CD Jan 96 SDK / Dev.CD Jan 96 SDK1.toast / Development Kits (Disc 1) / Communications Toolbox / CommToolbox 1.1 / Interfaces / AIncludes / ToolEqu.a < prev   
Encoding:
Text File  |  1994-11-21  |  40.4 KB  |  1,116 lines  |  [TEXT/MPS ]

  1. ;
  2. ; File: ToolEqu.a
  3. ;
  4. ; Assembler Interface to the Macintosh Libraries
  5. ; Copyright Apple Computer, Inc. 1984-1991
  6. ; All Rights Reserved
  7. ;___________________________________________________________________________
  8.  
  9.     IF &TYPE('__INCLUDINGTOOLEQU__') = 'UNDEFINED' THEN
  10. __INCLUDINGTOOLEQU__    SET    1
  11.  
  12.                   IF          (&TYPE('wholeTools') = 'UNDEFINED') THEN
  13. wholeTools        EQU         1
  14.                   ENDIF
  15.  
  16.  
  17. ;+ Resource Manager
  18.  
  19. ; Resource attributes
  20.  
  21. resSysRef         EQU         7                         ; reference to system/local reference
  22. resSysHeap        EQU         6                         ; In system/in application heap
  23. resPurgeable      EQU         5                         ; Purgeable/not purgeable
  24. resLocked         EQU         4                         ; Locked/not locked
  25. resProtected      EQU         3                         ; Protected/not protected
  26. resPreload        EQU         2                         ; Read in at OpenResource?
  27. resChanged        EQU         1                         ; Existing resource changed since last update
  28. rcbMask           EQU         $FD                       ; Must preserve ResChanged over _ResAttrs
  29.  
  30. ; Map attributes
  31.  
  32. mapReadOnly       EQU         7                         ; is this file read-only?
  33. mapCompact        EQU         6                         ; Is a compact necessary?
  34. mapChanged        EQU         5                         ; Is it necessary to write map?
  35.  
  36. ; Resource Manager Globals
  37.  
  38. TopMapHndl        EQU         $A50                      ; topmost map in list [handle]
  39. SysMapHndl        EQU         $A54                      ; system map [handle]
  40. SysMap            EQU         $A58                      ; reference number of system map [word]
  41. CurMap            EQU         $A5A                      ; reference number of current map [word]
  42. ResReadOnly       EQU         $A5C                      ; Read only flag [word]
  43. ResLoad           EQU         $A5E                      ; Auto-load feature [word]
  44. ResErr            EQU         $A60                      ; Resource error code [word]
  45. ResErrProc        EQU         $AF2                      ; Resource error procedure [pointer]
  46. SysResName        EQU         $AD8                      ; Name of system resource file [STRING[19]]
  47.  
  48. ;new Resource Manager stuff
  49.  
  50. RomMapInsert      EQU         $B9E                      ; (byte) determines if we should link in map
  51. TmpResLoad        EQU         $B9F                      ; second byte is temporary ResLoad value.
  52.  
  53. ; the following word values are to be placed into the
  54. ; word located at RomMapInsert
  55.  
  56. MapTrue           EQU         $FFFF                     ; link in ROM map with resload true 
  57. MapFalse          EQU         $FF00                     ; link in ROM map with resload false
  58.  
  59. ;+ Font Manager
  60.  
  61.  
  62. ; Standard font ID's
  63.  
  64. sysFont           EQU         0                         ; system font ID
  65. applFont          EQU         1                         ; application font ID
  66. newYork           EQU         2                         ; standard release fonts
  67. geneva            EQU         3
  68. monaco            EQU         4
  69. venice            EQU         5
  70. london            EQU         6
  71. athens            EQU         7
  72. sanFran           EQU         8
  73. toronto           EQU         9
  74. cairo             EQU         11
  75. losAngeles        EQU         12
  76. times             EQU         20
  77. helvetica         EQU         21
  78. courier           EQU         22
  79. symbol            EQU         23
  80. mobile            EQU         24
  81.  
  82. ; Font Manager Globals
  83.  
  84. ApFontID          EQU         $984                      ; resource ID of application font [word]
  85. FMDefaultSize     EQU         $987                      ; default size [byte]
  86. CurFMInput        EQU         $988                      ; quickdraw FMInput Record [pointer]
  87. FMgrOutRec        EQU         $998                      ; quickdraw FontOutput Record [pointer]
  88. FScaleDisable     EQU         $A63                      ; disable font scaling? [byte]
  89.  
  90. ;new FONT manager stuff
  91.  
  92. WidthListHand     EQU         $8E4                      ; list of extra width tables, or nil.
  93. WidthPtr          EQU         $B10                      ; (long) Font Mgr global
  94. WidthTabHandle    EQU         $B2A                      ; Font width table handle for measure
  95. LastSPExtra       EQU         $B4C                      ; (long) most recent value of space extra
  96. SysFontFam        EQU         $BA6                      ; (word) System font family ID or zero
  97. SysFontSize       EQU         $BA8                      ; (word) System font size (or zero for 12 pt)
  98. FDevDisable       EQU         $BB3                      ; (byte) $FF to disable device-defined style extra
  99. LastFOND          EQU         $BC2                      ; (long) handle of last font def record
  100. FONDID            EQU         $BC6                      ; (word) ID of last font def record
  101. FractEnable       EQU         $BF4                      ; (byte) flag for fractional font widths
  102. UsedFWidths       EQU         $BF5                      ; (byte) flag saying if we used fract widths
  103. FScaleHFact       EQU         $BF6                      ; (long) horz. font scale factor
  104. FScaleVFact       EQU         $BFA                      ; (long) vertical font scale factor 
  105.  
  106. ;+ Window Manager
  107.  
  108. ; system windows have negative kinds
  109. dialogKind        EQU         2                         ; dialog windows
  110. userKind          EQU         8                         ; this and above numbers are for user
  111.  
  112. ; Values returned by window definition function's hit routine
  113.  
  114. wNoHit            EQU         0                         ; not in window at all
  115. wInContent        EQU         1                         ; in content area
  116. wInDrag           EQU         2                         ; in drag area
  117. wInGrow           EQU         3                         ; in grow area
  118. wInGoAway         EQU         4                         ; in go away area
  119. wInZoomIn         EQU         5                         ; in zoom in
  120. wInZoomOut        EQU         6                         ; in zoom out
  121.  
  122. ; FindWindow Return Codes
  123.  
  124. inDesk            EQU         0                         ; not in any window
  125. inMenuBar         EQU         1                         ; in the menu bar
  126. inSysWindow       EQU         2                         ; in a system window
  127. inContent         EQU         3                         ; in content area of user window
  128. inDrag            EQU         4                         ; in drag area of user window
  129. inGrow            EQU         5                         ; in grow area of user window
  130. inGoAway          EQU         6                         ; in go away area of user window
  131. inZoomIn          EQU         7                         ; in zoom in part code
  132. inZoomOut         EQU         8                         ; in zoom out part code
  133.  
  134. ; Resource ID's for windows
  135.  
  136. deskPatID         EQU         16                        ; desk pattern PAT ID
  137. documentProc      EQU         0                         ; standard document WDEF ID
  138. dBoxProc          EQU         1                         ; dialog box (document without titleBar) WDEF ID
  139. plainDBox         EQU         2                         ; no border WDEF ID
  140. altDBoxProc       EQU         3                         ; no shadow or title WDEF ID
  141. noGrowDocProc     EQU         4                         ; no grow area WDEF ID
  142. movableDBoxProc    EQU            5                        ; movable dialog box WDEF ID
  143. zoomDocProc       EQU         8                         ; with zoom box WDEF ID
  144. zoomNoGrow        EQU         12                        ; zoom with no grow box WDEF ID
  145. rDocProc          EQU         16                        ; document with rounded corners WDEF ID
  146.  
  147. ; Window Data Structure Definition
  148.  
  149. windowPort        EQU         0                         ; grafPort [108 bytes]
  150. windowKind        EQU         $6C                       ; type of window [word]
  151. wVisible          EQU         $6E                       ; visible flag [byte]
  152. wHilited          EQU         $6F                       ; select (hilite) flag [byte]
  153. wGoAway           EQU         $70                       ; has go away button [byte]
  154. wZoom             EQU         $71                       ; has zoom box [byte]
  155. structRgn         EQU         $72                       ; structure region of window [Handle]
  156. contRgn           EQU         $76                       ; content region of window [Handle]
  157. updateRgn         EQU         $7A                       ; update region of window [Handle]
  158. windowDef         EQU         $7E                       ; window definition procedure [Handle]
  159. wDataHandle       EQU         $82                       ; window proc-defined data [Handle]
  160. wTitleHandle      EQU         $86                       ; title string [Handle]
  161. wTitleWidth       EQU         $8A                       ; width in pixels of title string [word]
  162. wControlList      EQU         $8C                       ; control list of this window [handle]
  163. nextWindow        EQU         $90                       ; next window in z-ordered list [pointer]
  164. windowPic         EQU         $94                       ; picture handle for updates [handle]
  165. wRefCon           EQU         $98                       ; application use [long]
  166. windowSize        EQU         $9C                       ; size of window data structure
  167. WStateData        RECORD      0
  168. userState         DS.L        2                         ;Rect
  169. stdState          DS.L        2                         ;Rect
  170.                   ENDR
  171.  
  172.  
  173.  
  174. ; Window Manager Globals
  175.  
  176. WindowList        EQU         $9D6                      ; Z-ordered linked list of windows [pointer]
  177. PaintWhite        EQU         $9DC                      ; erase newly drawn windows? [word]
  178. WMgrPort          EQU         $9DE                      ; window manager's grafport [pointer]
  179. GrayRgn           EQU         $9EE                      ; rounded gray desk region [handle]
  180. CurActivate       EQU         $A64                      ; window slated for activate event [pointer]
  181. CurDeactive       EQU         $A68                      ; window slated for deactivate event [pointer]
  182. DragHook          EQU         $9F6                      ; user hook during dragging [pointer]
  183. DeskPattern       EQU         $A3C                      ; desk pattern [8 bytes]
  184. DeskHook          EQU         $A6C                      ; hook for painting the desk [pointer]
  185. GhostWindow       EQU         $A84                      ; window hidden from FrontWindow [pointer]
  186.  
  187.  
  188.  
  189. ;+ Menu Manager
  190.  
  191. ; "ASCII" marks for menu characters
  192.  
  193. noMark            EQU         0
  194. commandMark       EQU         $11                       ; command fan (cloverleaf)
  195. checkMark         EQU         $12                       ; check mark for menus
  196. diamondMark       EQU         $13                       ; diamond mark for menus
  197. appleMark         EQU         $14                       ; desk ornament menu title
  198.  
  199. ; MenuList Data Structure Definition -- one per menuBar
  200.  
  201. ; 6 Byte header
  202. lastMenu          EQU         0                         ; number of bytes in this menuList [word]
  203. lastRight         EQU         2                         ; h coordinate of 1st free point in menuBar [word]
  204. ; one of the following per menu
  205. menuoH            EQU         0                         ; menu handle [handle]
  206. menuLeft          EQU         4                         ; coordinate of left edge of menu [word]
  207.  
  208. ; MenuInfo Data Structure -- one per menu
  209.  
  210. menuID            EQU         0                         ; unique ID for each menuBar [word]
  211. menuWidth         EQU         2                         ; menu width [word]
  212. menuHeight        EQU         4                         ; menu height [word]
  213. menuDefHandle     EQU         6                         ; menu definition proc [handle]
  214. menuEnable        EQU         $A                        ; enable flags, one bit/item [long]
  215. menuData          EQU         $E                        ; menu item string [STRING]
  216. menuBlkSize       EQU         $E                        ; size of a menu block plus dataString
  217.  
  218. ; MenuString Data Structure -- one per menu item
  219.  
  220. itemIcon          EQU         0                         ; icon byte
  221. itemCmd           EQU         1                         ; apple (command key) byte
  222. itemMark          EQU         2                         ; checkmark character byte
  223. itemStyle         EQU         3                         ; style byte
  224.  
  225. ; Menu Manager Globals
  226.  
  227. MenuList          EQU         $A1C                      ; current menuBar list structure [handle]
  228. MenuFlash         EQU         $A24                      ; flash feedback count [word]
  229. MenuHook          EQU         $A30                      ; user hook during menuSelect [pointer]
  230. MBarEnable        EQU         $A20                      ; menuBar enable for desk accessories[word]
  231. MBarHook          EQU         $A2C                      ; user hook during menuSelect [pointer]
  232.  
  233. ;new Menu Manager stuff
  234.  
  235. MBarHeight        EQU         $BAA                      ; (word) height of menu bar (usually 20)
  236.  
  237. ;+ Control Manager
  238.  
  239. ; Part Codes
  240.  
  241. inButton          EQU         10                        ; in a push button
  242. inCheckBox        EQU         11                        ; in a checkBox button
  243. inUpButton        EQU         20                        ; in up button area of a dial
  244. inDownButton      EQU         21                        ; in down button area of a dial
  245. inPageUp          EQU         22                        ; in page up (gray) area of a dial
  246. inPageDown        EQU         23                        ; in page down (gray) area of a dial
  247. inThumb           EQU         129                       ; in thumb area of a dial
  248.  
  249. ; Constants for axis parameter of DragGrayRgn and DragControl
  250.  
  251. noConstraint      EQU         0                         ; free form dragging
  252. hAxisOnly         EQU         1                         ; horizontally only
  253. vAxisOnly         EQU         2                         ; vertically only
  254.  
  255. ; Resource ID's for controls
  256.  
  257. pushButProc       EQU         0                         ; rounded-corner pushButtons CDEF ID
  258. checkBoxProc      EQU         1                         ; check-box type buttons CDEF ID
  259. radioButProc      EQU         2                         ; radio buttons CDEF ID
  260. scrollBarProc     EQU         16                        ; scrollBar CDEF ID
  261. useWFont          EQU         8                         ; add this to get window font CDEF ID
  262. sBarPatID         EQU         17                        ; scrollBar pattern ID
  263.  
  264.  
  265. ; Popup Control Constants 
  266. popupMenuCDEFproc        EQU    1008                    ; popup menu CDEF ID
  267.  
  268. ; Popup Variation Codes 
  269. popupFixedWidth            EQU    $0001                    ; size will not vary with menu items
  270. popupReserved            EQU    $0002                    ; was popupUseCQD
  271. popupUseAddResMenu        EQU    $0004                    ; menu = AddResMenu(CNTL's refCon)
  272. popupUseWFont            EQU    $0008                    ; use this for window font/size/face
  273.  
  274. ; Popup Title characteristics
  275. popupTitleBold            EQU    $00000100                ; styles for the popup title
  276. popupTitleItalic        EQU    $00000200
  277. popupTitleUnderline        EQU    $00000400
  278. popupTitleOutline        EQU    $00000800
  279. popupTitleShadow        EQU    $00001000
  280. popupTitleCondense        EQU    $00002000
  281. popupTitleExtend        EQU    $00004000
  282. popupTitleNoStyle        EQU    $00008000
  283.  
  284. popupTitleLeftJust        EQU    $00000000                ; justification for the title
  285. popupTitleCenterJust    EQU    $00000001
  286. popupTitleRightJust        EQU    $000000FF
  287.  
  288.  
  289. ; Control Template
  290.  
  291. nextControl       EQU         $0                        ; next control in the list [handle]
  292. contrlOwner       EQU         $4                        ; owning window [pointer]
  293. contrlRect        EQU         $8                        ; bounding rectangle [8 bytes]
  294. contrlVis         EQU         $10                       ; visible state [byte]
  295. contrlHilite      EQU         $11                       ; hilite state [byte]
  296. contrlValue       EQU         $12                       ; current value of control [word]
  297. contrlMin         EQU         $14                       ; minimum value of control [word]
  298. contrlMax         EQU         $16                       ; maximum value of control [word]
  299. contrlDefHandle   EQU         $18                       ; control definition procedure [handle]
  300. contrlData        EQU         $1C                       ; data for definition proc [handle]
  301. contrlAction      EQU         $20                       ; local actionProc [pointer]
  302. contrlRFcon       EQU         $24                       ; refcon defined by application [long]
  303. contrlTitle       EQU         $28                       ; title string [STRING]
  304. contrlSize        EQU         $28                       ; size of control data structure less title
  305.  
  306. ; Control Manager Globals
  307.  
  308. DragPattern       EQU         $A34                      ; DragTheRgn pattern [8 bytes]
  309. DragFlag          EQU         $A44                      ; implicit parameter to DragControl [word]
  310. CurDragAction     EQU         $A46                      ; implicit actionProc for dragControl [pointer]
  311.  
  312.  
  313. ;+ Text Edit
  314.  
  315.  
  316. ; Justification styles
  317.  
  318. teJustLeft        EQU         0                         ; left justified text
  319. teJustRight       EQU         -1                        ; right justified text
  320. teJustCenter      EQU         1                         ; center justified text
  321. teForceLeft       EQU         -2                        ; for Arabic fonts, force left justification
  322.  
  323. ; new names for the Justification styles
  324. teFlushDefault    EQU            0                        ; flush according to the line direction
  325. teCenter        EQU            1                        ; center justify
  326. teFlushRight    EQU            -1                        ; flush right for all scripts
  327. teFlushLeft        EQU            -2                        ; flush left for all scripts
  328.  
  329. ; Text Edit Record
  330.  
  331. teDestRect        EQU         $0                        ; destination rectangle [8 bytes]
  332. teViewRect        EQU         $8                        ; view rectangle rectangle [8 bytes]
  333. teSelRect         EQU         $10                       ; select rectangle [8 bytes]
  334. teLineHite        EQU         $18                       ; lineheight [word]
  335. teAscent          EQU         $1A                       ; first baseline offset [word]
  336. teSelPoint        EQU         $1C                       ; selection point [long]
  337. teSelStart        EQU         $20                       ; selection start [word]
  338. teSelEnd          EQU         $22                       ; selection end [word]
  339. teActive          EQU         $24                       ; active [byte]
  340. teWordBreak       EQU         $26                       ; word break routine [pointer]
  341. teClikProc        EQU         $2A                       ; click loop routine [pointer]
  342. teClikTime        EQU         $2E                       ; time of last click [long]
  343. teClikLoc         EQU         $32                       ; location of double click [long]
  344. teCarTime         EQU         $34                       ; time for next caret toggle [long]
  345. teCarOn           EQU         $38                       ; is caret on? [byte]
  346. teCarAct          EQU         $39                       ; is caret active? [byte]
  347. teJust            EQU         $3A                       ; fill style [word]
  348. teLength          EQU         $3C                       ; length of text below [word]
  349. teTextH           EQU         $3E                       ; text [handle]
  350. teRecBack         EQU         $42                       ; unused [word]
  351. teRecLine         EQU         $44                       ; unused [word]
  352. teLftClick        EQU         $46                       ; click was to left? [byte]
  353. teLftCaret        EQU         $47                       ; caret was to left? [byte]
  354. teCROnly          EQU         $48                       ; <CR> only for line breaks? [byte]
  355. teFontStuff       EQU         $4A                       ; space for font specifier [8 bytes]
  356. teFont            EQU         $4A                       ; text font [word]
  357. teFace            EQU         $4C                       ; text face [word]
  358. teMode            EQU         $4E                       ; text mode [word]
  359. teSize            EQU         $50                       ; text size [word]
  360. teGrafPort        EQU         $52                       ; grafport for editting [pointer]
  361. teHiHook          EQU         $56                       ; hook for hilite routine [pointer]
  362. teCarHook         EQU         $5A                       ; hook for hilite routine [pointer]
  363. teNLines          EQU         $5E                       ; number of lines [word]
  364. teLines           EQU         $60                       ; line starts [words...]
  365. teRecSize         EQU         $68                       ; base size of a record w/o lines
  366.  
  367. ; Text Edit Globals
  368.  
  369. TEDoText          EQU         $A70                      ; textEdit doText proc hook [pointer]
  370. TERecal           EQU         $A74                      ; textEdit recalText proc hook [pointer]
  371. TEScrpLength      EQU         $AB0                      ; textEdit Scrap Length [word]
  372. TEScrpHandle      EQU         $AB4                      ; textEdit Scrap [handle]
  373. TEWdBreak         EQU         $AF6                      ; default word break routine [pointer]
  374. TEFindWord        EQU            $7F8                    ; low-memory hook for TextEdit's FindWord routine
  375.  
  376. ;new TE stuff
  377.  
  378. WordRedraw        EQU         $BA5                      ; (byte) - used by TextEdit RecalDraw
  379. TESysJust         EQU         $BAC                      ; (word) system justification (intl. textEdit)
  380. TEFlags           EQU         teRecBack                 ; turn whole byte into bit flags
  381. teFAutoPos        EQU         6                         ; set this bit for auto position/scroll
  382.  
  383. ;+ Dialog Manager
  384.  
  385. ; Item codes in item list
  386.  
  387. userItem          EQU         0                         ; application-defined (dialog only)
  388. ctrlItem          EQU         4                         ; must be added to following four items
  389. btnCtrl           EQU         0                         ; standard button
  390. chkCtrl           EQU         1                         ; standard check box
  391. radCtrl           EQU         2                         ; standard radio button
  392. resCtrl           EQU         3                         ; control defined in resource file
  393. statText          EQU         8                         ; static text
  394. editText          EQU         16                        ; editable text (dialog only)
  395. iconItem          EQU         32                        ; icon
  396. picItem           EQU         64                        ; quickdraw picture
  397. itemDisable       EQU         128                       ; add to any of above to disable
  398.  
  399.  
  400. ; Generic buttons
  401.  
  402. okButton          EQU         1                         ; OK button
  403. cancelButton      EQU         2                         ; Cancel button
  404.  
  405. ; Alert/Dialog Resource ID's
  406.  
  407. stopIcon          EQU         0                         ; stop icon ID
  408. noteIcon          EQU         1                         ; note icon ID
  409. cautionIcon       EQU         2                         ; caution icon ID
  410.  
  411. ; Dialog Template
  412.  
  413. dBounds           EQU         $0                        ; dialog bounds rectangle
  414. dWindProc         EQU         $8                        ; window proc ID
  415. dVisible          EQU         $A                        ; visible flag
  416. dGoAway           EQU         $C                        ; go away flag
  417. dRefCon           EQU         $E                        ; reference constant
  418. dItems            EQU         $12                       ; item list ID and handle
  419. dTitle            EQU         $14                       ; dialog window title
  420.  
  421. ; Alert Template
  422.  
  423. aBounds           EQU         $0                        ; alert box height and width
  424. aItems            EQU         $8                        ; item list ID
  425. aStages           EQU         $A                        ; stages word
  426.  
  427. ; Dialog/Alert Window Record
  428.  
  429. dWindow           EQU         $0                        ; window record
  430. items             EQU         $9C                       ; Item list [handle]
  431. teHandle          EQU         $A0                       ; textEdit object [handle]
  432. editField         EQU         $A4                       ; current field being edited [word]
  433. editOpen          EQU         $A6                       ; is editting open? [word]
  434. aDefItem          EQU         $A8                       ; default item for alerts [word]
  435. dWindLen          EQU         $AA                       ; dialog record length
  436.  
  437. ; In each item
  438.  
  439. itmHndl           EQU         0                         ; handle to the item
  440. itmRect           EQU         $4                        ; bounding rect of item
  441. itmType           EQU         $C                        ; item type
  442. itmData           EQU         $D                        ; item string, must be even length
  443.  
  444. ; Dialog Manager Globals
  445.  
  446. ANumber           EQU         $A98                      ; active alert ID [word]
  447. ACount            EQU         $A9A                      ; # times this alert called [word]
  448. DABeeper          EQU         $A9C                      ; beep routine [pointer]
  449. DAStrings         EQU         $AA0                      ; paramText substutution strings [4 handles]
  450. DlgFont           EQU         $AFA                      ; default dialog font ID [word]
  451.  
  452.  
  453. ;+ Package Globals
  454.  
  455.  
  456. AppPacks          EQU         $AB8                      ; packages' code [8 handles]
  457.  
  458.  
  459. ;+ Finder related Globals
  460.  
  461.  
  462. FinderName        EQU         $2E0                      ; "Finder" name [STRING[15]]
  463. AppParmHandle     EQU         $AEC                      ; handle to hold application parameters
  464.  
  465.  
  466. ;+ Miscellaneous Globals
  467.  
  468.  
  469. ApplScratch       EQU         $A78                      ; application scratch area [12 Bytes]
  470. ToolScratch       EQU         $9CE                      ; scratch area [8 bytes]
  471. TempRect          EQU         $9FA                      ; scratch rectangle [8 bytes]
  472.  
  473. ; System Patterns
  474.  
  475. sysPatListID      EQU         0                         ; ID of PAT# which contains 38 patterns
  476.  
  477.                   IF          wholeTools THEN
  478.  
  479. ; Resource Manager
  480.  
  481. mCCMask           EQU         $60                       ; mapCompact + mapChanged
  482. mChMask           EQU         $20                       ; mapChanged
  483. mCoMask           EQU         $40                       ; mapCompact
  484.  
  485. ; Font Manager
  486.  
  487. ; Font header values
  488.  
  489. propFont          EQU         $9000                     ; proportional font type
  490. prpFntH           EQU         $9001                     ; with height table
  491. prpFntW           EQU         $9002                     ; with width table
  492. prpFntHW          EQU         $9003                     ; with height & width table
  493. fixedFont         EQU         $B000                     ; fixed-pitch font type
  494. fxdFntH           EQU         $B001                     ; with height table
  495. fxdFntW           EQU         $B002                     ; with width table
  496. fxdFntHW          EQU         $B003                     ; with height & width table
  497. fontWid           EQU         $ACB0                     ; width-only font type
  498.  
  499. ; control/status codes for linkage w/font manager
  500.  
  501. fMgrCtl1          EQU         8                         ; printer drivers
  502.  
  503. ; Font Header Data Record
  504.  
  505. fFontType         EQU         0                         ; font type [word]
  506. fFirstChar        EQU         2                         ; ASCII code of first char [word]
  507. fLastChar         EQU         4                         ; ASCII code of last char [word]
  508. fWidMax           EQU         6                         ; maximum width of any char in pixels [word]
  509. fKernMax          EQU         8                         ; Negative of maximum character kern [word]
  510. fNDescent         EQU         10                        ; negative of descent [word]
  511. fFRectWidth       EQU         12                        ; width of font rectangle [word]
  512. fFRectHeight      EQU         14                        ; height of font rectangle [word]
  513. fOWTLoc           EQU         16                        ; offset to offset/width table [word]
  514. fAscent           EQU         18                        ; ascent above baseline in pixels [word]
  515. fDescent          EQU         20                        ; descent below baseline in pixels [word]
  516. fLeading          EQU         22                        ; space between lines in pixels [word]
  517. fRowWords         EQU         24                        ; row width of bit image / 2 [word]
  518.  
  519. ; Font Manager Input Record (CurFMInput)
  520.  
  521. fmInFamily        EQU         0                         ; family [word]
  522. fmInSize          EQU         2                         ; size [word]
  523. fmInFace          EQU         4                         ; face [word]
  524. fmInNeedBits      EQU         5                         ; needBits [byte]
  525. fmInDevice        EQU         6                         ; device number [byte]
  526. fmInNumer         EQU         8                         ; numerator of scale [fixed]
  527. fmInDenom         EQU         12                        ; denominator of scale [fixed]
  528.  
  529.  
  530. ; Font Manager Output record (FMgrOutRec)
  531.  
  532. fmOutError        EQU         0                         ; error code [word]
  533. fmOutFontH        EQU         2                         ; the actual font [handle]
  534. fmOutBold         EQU         6                         ; bolding factor [byte]
  535. fmOutItalic       EQU         7                         ; italic factor [byte]
  536. fmOutULOffset     EQU         8                         ; underline offset [byte]
  537. fmOutULShadow     EQU         9                         ; underline halo [byte]
  538. fmOutULThick      EQU         10                        ; underline thickness [byte]
  539. fmOutShadow       EQU         11                        ; shadow factor [byte]
  540. fmOutExtra        EQU         12                        ; extra horizontal width [byte]
  541. fmOutAscent       EQU         13                        ; height above baseline [byte]
  542. fmOutDescent      EQU         14                        ; height below baseline [byte]
  543. fmOutWidMax       EQU         15                        ; maximum width of character [byte]
  544. fmOutLeading      EQU         16                        ; space between lines [byte]
  545. fmOutNumer        EQU         18                        ; point for numerators of scale factor [long]
  546. fmOutDenom        EQU         22                        ; point for denominators of scale factor [long]
  547.  
  548.  
  549. ;WidthTable data structure
  550.  
  551. widTabData        EQU         0                         ;ARRAY[1..256] OF LONGINT character widths
  552. widTabFont        EQU         1024                      ;Handle font record used to build table
  553. widthSExtra       EQU         1028                      ;LONGINT space extra used for table
  554. widthStyle        EQU         1032                      ;LONGINT extra due to style
  555. widthFID          EQU         1036                      ;INTEGER font family ID
  556. widthFSize        EQU         1038                      ;INTEGER font size request
  557. widthFace         EQU         1040                      ;INTEGER style (face) request
  558. widthDevice       EQU         1042                      ;INTEGER device requested
  559. widthVInScale     EQU         1044                      ;FIXED scale factors requested
  560. widthHInScale     EQU         1048                      ;FIXED scale factors requested
  561. widthAFID         EQU         1052                      ;INTEGER actual font family ID for table
  562. widthFHand        EQU         1054                      ;Handle family record used to build up table
  563. widthUsedFam      EQU         1058                      ;BOOLEAN used fixed point family widths
  564. widthAFace        EQU         1059                      ;BYTE actual face produced
  565. widthVOutput      EQU         1060                      ;INTEGER vertical scale output value
  566. widthHOutput      EQU         1062                      ;INTEGER horizontal scale output value
  567. widthVFactor      EQU         1064                      ;INTEGER vertical scale output value
  568. widthHFactor      EQU         1066                      ;INTEGER horizontal scale output value
  569. widthASize        EQU         1068                      ;INTEGER actual size of actual font used
  570. ;widTabSize        EQU         1070                      ;INTEGER total size of table
  571.  
  572. ; Font Family Definition
  573.  
  574. ffFlags           EQU         0                         ; flags for family (word)
  575. ffFamID           EQU         2                         ; family ID number (word)
  576. ffFirst           EQU         4                         ; ASCII code of first character (word)
  577. ffLast            EQU         6                         ; ASCII code of last character (word)
  578. ffAscent          EQU         8                         ; maximum ascent expressed for 1 pt (word)
  579. ffDescent         EQU         10                        ; maximum descent expressed for 1 pt (word)
  580. ffLeading         EQU         12                        ; maximum leading expressed for 1 pt (word)
  581. ffWidMax          EQU         14                        ; maximum widMax expressed for 1 pt (word)
  582. ffWTabOff         EQU         16                        ; offset to width table (long)
  583. ffKernOff         EQU         20                        ; offset to kerning table (long)
  584. ffStylOff         EQU         24                        ; offset to style mapping table (long)
  585. ffStyleOff         EQU         24                        ; offset to style mapping table (long)
  586. ffProperty        EQU         28                        ; style property info (12 words)
  587. ffIntl            EQU         46                        ; reserved for international use (2 words)
  588. ffVersion         EQU         50                        ; FOND version number
  589.  
  590. ; Font Characterization Table
  591.  
  592. dpiVert           EQU         0                         ; vertical dots per inch [word]
  593. dpiHoriz          EQU         2                         ; horizontal dots per inch [word]
  594. boldChr           EQU         4                         ; bold characteristics [3 bytes]
  595. italChr           EQU         7                         ; italic characteristics [3 bytes]
  596. ; unused [3 bytes]
  597. outlineChr        EQU         13                        ; outline characteristics [3 bytes]
  598. shadowChr         EQU         16                        ; shadow characteristics [3 bytes]
  599. condChr           EQU         19                        ; condensed characteristics [3 bytes]
  600. extendChr         EQU         22                        ; extended characteristics [3 bytes]
  601. underChr          EQU         25                        ; underline characteristics [3 bytes]
  602.  
  603. ; Globals
  604.  
  605. CurFMFamily       EQU         $988                      ; current font family
  606. CurFMSize         EQU         $98A                      ; current font size
  607. CurFMFace         EQU         $98C                      ; current font face
  608. CurFMNeedBits     EQU         $98D                      ; boolean specifying whether it needs strike
  609. CurFMDevice       EQU         $98E                      ; current font device
  610. CurFMNumer        EQU         $990                      ; current numerator of scale factor
  611. CurFMDenom        EQU         $994                      ; current denominator of scale factor
  612. FOutRec           EQU         $998                      ; Font Manager output record
  613. FMDotsPerInch     EQU         $9B2                      ; h,v dotsPerInch of current device
  614. FMStyleTab        EQU         $9B6                      ; style heuristic table supplied by device
  615. RomFont0          EQU         $980                      ; system font [handle]
  616. GotStrike         EQU         $986                      ; Do we have the strike? [byte]
  617.  
  618.  
  619. ; Window Manager
  620.  
  621. ; Window Definition Procedure Messages
  622.  
  623. wDrawMsg          EQU         0                         ; draw yourself
  624. wHitMsg           EQU         1                         ; hit test
  625. wCalcRgnMsg       EQU         2                         ; recalculate your regions
  626. wInitMsg          EQU         3                         ; initialize yourself
  627. wDisposeMsg       EQU         4                         ; dispose any private data
  628. wGrowMsg          EQU         5                         ; drag out grow outline
  629. wGIconMsg         EQU         6                         ; draw the grow icon
  630. OldStructure      EQU         $9E6                      ; saved structure region [handle]
  631. OldContent        EQU         $9EA                      ; saved content region [handle]
  632. SaveVisRgn        EQU         $9F2                      ; temporarily saved visRegion [handle]
  633. CurDeKind         EQU         $A22                      ; window kind of deactivated window [word]
  634. SaveUpdate        EQU         $9DA                      ; Enable update accumulation? [word]
  635.  
  636. ; Menu Manager
  637.  
  638. ; Menu Definition Procedure Messages
  639.  
  640. mDrawMsg          EQU         0                         ; draw yourself
  641. mChooseMsg        EQU         1                         ; select an item
  642. mSizeMsg          EQU         2                         ; calculate your size
  643.  
  644. ; Menu Resource IDs
  645.  
  646. textMenuProc      EQU         0                         ; standard text menu MDEF ID
  647. TheMenu           EQU         $A26                      ; ID of hilited menu [word]
  648. SavedHandle       EQU         $A28                      ; saved bits under a menu [handle]
  649.  
  650. ;misc Menu stuff
  651.  
  652. MrMacHook         EQU         $A2C                      ; Mr. Macintosh hook [pointer]
  653.  
  654. ; Control manager
  655.  
  656. ; Control Definition Procedure Messages
  657.  
  658. drawCtlMsg        EQU         0                         ; draw message
  659. hitCtlMsg         EQU         1                         ; hit test message
  660. calcCtlMsg        EQU         2                         ; calc region message
  661. newCtlMsg         EQU         3                         ; init message
  662. dispCtlMsg        EQU         4                         ; dispose any private data message
  663. posCtlMsg         EQU         5                         ; adjust indicator position message
  664. thumbCtlMsg       EQU         6                         ; calculate rectangles for thumb dragging
  665. dragCtlMsg        EQU         7                         ; custom drag message
  666. trackCtlMsg       EQU         8                         ; track yourself message
  667. calcWholeCtlMsg   EQU         10                        ; calc whole region message
  668. calcThumbCtlMsg   EQU         11                        ; calc indicator region message
  669.  
  670. ;stage definition--packed 2 to a byte, 4 stages in a word
  671.  
  672. volBits           EQU         3                         ; number of beeps
  673. alBit             EQU         4                         ; alert bit (put up box this time?)
  674. okDismissal       EQU         8                         ; bit for OK/Cancel default in each stage
  675.  
  676. ; DialogList Data Structure Definitions
  677.  
  678. dlgMaxIndex       EQU         0                         ; maximum index (=items-1) stored here
  679.  
  680.  
  681. SaveProc          EQU         $A90                      ; address of Save failsafe procedure
  682. SaveSP            EQU         $A94                      ; Safe SP for restart or save
  683.  
  684. ; DITLMethod 
  685. overlayDITL         EQU 0
  686. appendDITLRight     EQU 1
  687. appendDITLBottom     EQU 2
  688.  
  689. ; Dialog Selectors
  690. AppendDITL            EQU    $402
  691. CountDITL            EQU    $403
  692. ShortenDITL            EQU    $404
  693.  
  694. ; Package Manager
  695.  
  696. FPState           EQU         $A4A                      ; floating point state [6 bytes]
  697. App2Packs         EQU         $BC8                      ; $BC8-$BE7 eight more package handles
  698.  
  699. ; Resource Manager
  700.  
  701. RMGRPerm          EQU         $BA4                      ; (byte) - permission byte for OpenResFile
  702.  
  703. ; Miscellaneous Constants
  704.  
  705. screenRadius      EQU         $00100010                 ; rounded corners for desk area
  706.  
  707. ; Miscellaneous Globals
  708.  
  709. IconBitmap        EQU         $A0E                      ; bitmap used for plotting things
  710. TaskLock          EQU         $A62                      ; re-entering SystemTask [byte]
  711. CloseOrnHook      EQU         $A88                      ; hook for closing desk ornaments
  712.  
  713. ;new MacApp stuff
  714.  
  715. MAErrProc         EQU         $BE8                      ; (long) MacApp error proc address
  716. MASuperTab        EQU         $BEC                      ; (long) handle to MacApp superclass table
  717.  
  718.  
  719. ;**************** NEW TOOL EQUATES ************
  720.  
  721. ; Font Manager
  722.  
  723. ; addition to FMgrOutRec (was unused)
  724.  
  725. fmOutCurStyle     EQU         17                        ;style algorthmically applied by QuickDraw
  726.  
  727. ;___________________________________________________________________________
  728. ;
  729. ; Window Manager
  730.  
  731. ; auxWinRec structure
  732.  
  733. awNext            EQU         $0                        ;next in chain [Handle]
  734. awOwner           EQU         $4                        ;owner ID [WindowPtr]
  735. awCTable          EQU         $8                        ;color table [CTabHandle]
  736. dialogCItem       EQU         $C                        ;handle to dialog manager structures [handle]
  737. awFlags           EQU         $10                       ;handle for Ernie [handle]
  738. awResrv           EQU         $14                       ;for expansion [longint]
  739. awRefCon          EQU         $18                       ;user constant [longint]
  740. auxWinSize        EQU         $1C                       ;size of record
  741. AuxWinHead        EQU         $0CD0                     ;[handle] Window Aux List head
  742.  
  743. ; Window Part Identifiers which correlate color table entries with window elements
  744.  
  745. wContentColor     EQU         0
  746. wFrameColor       EQU         1
  747. wTextColor        EQU         2
  748. wHiliteColor      EQU         3
  749. wTitleBarColor    EQU         4
  750.  
  751.  
  752. ;___________________________________________________________________________
  753. ;
  754. ; Control Manager
  755.  
  756. ; auxCtlRec structure
  757.  
  758. acNext            EQU         $0                        ;next in chain [AuxCtlHndl]
  759. acOwner           EQU         $4                        ;owner ID [ControlHandle]
  760. acCTable          EQU         $8                        ;color table [CCTabHandle]
  761. acFlags           EQU         $C                        ;misc flag byte [word]
  762. acReserved        EQU         $E                        ;for expansion [LONGINT]
  763. acRefCon          EQU         $12                       ;user constant [LONGINT]
  764. acSize            EQU         $16                       ;size of record
  765. AuxCtlHead        EQU         $0CD4                     ;[handle] Control Aux List head
  766.  
  767. ; Here are some equates for the colors of control parts
  768.  
  769. cFrameColor       EQU         0
  770. cBodyColor        EQU         1
  771. cTextColor        EQU         2
  772. cThumbColor       EQU         3
  773.  
  774. ;___________________________________________________________________________
  775. ;
  776. ; Menu Manager
  777.  
  778. MenuDisable       EQU         $0B54                     ; menuID and Item when disabled item selected
  779. MBDFHndl          EQU         $0B58                     ; handle to current menu bar defproc
  780. MBSaveLoc         EQU         $0B5C                     ; handle to the mbarproc private data
  781. MenuCInfo         EQU         $0D50                     ; hanel to menu color information table
  782. TopMenuItem       EQU         $A0A                      ; pixel value of top of scrollable menu
  783. AtMenuBottom      EQU         $A0C                      ; pixel value of bottom of scrollable menu
  784.  
  785. ;
  786. ; color menu table equates (mct = menu color table)
  787. ;
  788. mctID             EQU         $0
  789. mctItem           EQU         $2
  790. mctRGB1           EQU         $4
  791. mctRGB2           EQU         $A
  792. mctRGB3           EQU         $10
  793. mctRGB4           EQU         $16
  794. mctReserved       EQU         $1C
  795. mctEntrySize      EQU         $1E
  796.  
  797. ;
  798. ; miscellaneous equates for hierarchical menus
  799. ;
  800.  
  801. hMenuCmd          EQU         $1B                       ; itemCmd == $1B ==> hierarchical menu for this item
  802. scriptMenuCmd     EQU         28                        ; itemCmd == $1C ==> item to be displayed in script font
  803. hierMenu          EQU         -1                        ; InsertMenu(handle, hierMenu), when beforeID ==
  804. ; hierMenu, the handle is inserted in the
  805. ; hierarchical menuList
  806. mPopUpMsg         EQU         3                         ; menu defProc messages - place yourself
  807. ; miscellaneous hierarchical equates
  808. ;
  809. hMenuMark         EQU         200                       ; 'ยป' = menu character indicates item with hierarchical menu
  810.  
  811. ;
  812. ; miscellaneous menubar equates
  813. ;
  814. mbMenu1Loc        EQU         $A                        ; first menu is 10 pixels from left side of screen
  815. mctAllIds         EQU         -97                       ; search for all IDs for the given Item
  816.  
  817. ;
  818. ; color menu table search (and destroy) messages (mct = menu color table)
  819. ;
  820. mctAllItems       EQU         -98                       ; search for all Items for the given ID
  821. mctLastIDIndic    EQU         -99                       ; last entry in color table has this in ID field
  822.  
  823. ;___________________________________________________________________________
  824. ;
  825. ; Text Edit
  826.  
  827. ; Set/Replace style modes
  828.  
  829. fontBit           EQU         0                         ; set font
  830. faceBit           EQU         1                         ; set face
  831. sizeBit           EQU         2                         ; set size
  832. clrBit            EQU         3                         ; set color
  833. addSizeBit        EQU         4                         ; add size mode
  834. toglBit           EQU         5                         ;set faces in toggle mode
  835. ; TESetStyle/TEContinuousStyle modes
  836. doFont            EQU         $01
  837. doFace            EQU         2
  838. doSize            EQU         4
  839. doColor           EQU         8
  840. doAll             EQU         15                        ; set font/face/size/color
  841. addSize           EQU         16
  842. doToggle          EQU         32
  843. ; New internal dispatch table
  844. ; --offsets into TEDispatchRec
  845. EOLHook           EQU         0                         ; [ProcPtr] TEEOLHook
  846. DRAWHook          EQU         4                         ; [ProcPtr] TEWidthHook
  847. WIDTHHook         EQU         8                         ; [ProcPtr] TEDrawHook
  848. HITTESTHook       EQU         12                        ; [ProcPtr] TEHitTestHook
  849. nWIDTHHook        EQU            24                        ; [ProcPtr] nTEWidthHook    <6>
  850. TextWidthHook    EQU            28                        ; [ProcPtr] TETextWidthHook    <13>
  851. ; --selectors for TECustomHook
  852. IntEOLHook        EQU         0
  853. IntDrawHook       EQU         1
  854. IntWidthHook      EQU         2
  855. IntHitTestHook    EQU         3
  856. IntNWidthHook    EQU            6                        ; new version of WidthHook    <6>
  857. IntTextWidthHook    EQU        7                        ; new TextWidthHook            <13>
  858. teDispatchH       EQU         teRecBack                 ; new handle to internal dispatch record
  859. ; handle to style record
  860.  
  861. teStylesH         EQU         $4A                       ; replaces teFont/teFace
  862.  
  863. ; offsets into TEStyleRec
  864.  
  865. nRuns             EQU         $0                        ; [INTEGER] # of entries in styleStarts array
  866. nStyles           EQU         $2                        ; [INTEGER] # of distinct styles
  867. styleTab          EQU         $4                        ; [STHandle] handle to distinct styles
  868. lhTab             EQU         $8                        ; [LHHandle] handle to line heights
  869. teRefCon          EQU         $C                        ; [LONGINT] reserved
  870. nullStyle         EQU         $10                       ; [NullStHandle] to style set at null selection
  871. runs              EQU         $14                       ; array of styles
  872.  
  873. ; offsets into NullStRec
  874.  
  875. teReserved        EQU         0                         ; [LONGINT] reserved for future expansion
  876. nullScrap         EQU         4                         ; [StScrpHandle] handle to scrap style table.
  877. nullStSize        EQU         8
  878.  
  879. ; offsets into StyleRun array
  880.  
  881. startChar         EQU         0                         ; [INTEGER] offset into text to start of style
  882. styleIndex        EQU         2                         ; [INTEGER] style index
  883. stStartSize       EQU         4                         ; size of a styleStarts entry
  884.  
  885. ; offsets into STElement
  886.  
  887. stCount           EQU         0                         ; [INTEGER] # of times this style is used
  888. stHeight          EQU         2                         ; [INTEGER] line height
  889. stAscent          EQU         4                         ; [INTEGER] ascent
  890. stFont            EQU         6                         ; [INTEGER] font
  891. stFace            EQU         8                         ; [Style] face
  892. stSize            EQU         10                        ; [INTEGER] size
  893. stColor           EQU         12                        ; [RGBColor] color
  894. stRecSize         EQU         18                        ; size of a teStylesRec
  895.  
  896. ; offsets into TextStyle
  897.  
  898. tsFont            EQU         0                         ; [INTEGER] font
  899. tsFace            EQU         2                         ; [Style] face
  900. tsSize            EQU         4                         ; [INTEGER] size
  901. tsColor           EQU         6                         ; [RGBColor] color
  902. styleSize         EQU         12                        ; size of a StylRec
  903.  
  904. ; offsets into StScrpRec
  905.  
  906. scrpNStyles       EQU         0                         ; [INTEGER] # of styles in scrap
  907. scrpStyleTab      EQU         2                         ; [ScrpSTTable] start of scrap styles array
  908.  
  909. ; offsets into scrpSTElement
  910.  
  911. scrpStartChar     EQU         0                         ; [LONGINT] char where this style starts
  912. scrpHeight        EQU         4                         ; [INTEGER] line height
  913. scrpAscent        EQU         6                         ; [INTEGER] ascent
  914. scrpFont          EQU         8                         ; [INTEGER] font
  915. scrpFace          EQU         10                        ; [Style] face
  916. scrpSize          EQU         12                        ; [INTEGER] size
  917. scrpColor         EQU         14                        ; [RGBColor] color
  918. scrpRecSize       EQU         20                        ; size of a scrap record
  919.  
  920. teFAutoScr            EQU        0                        ; (00000001b)
  921. ; feature definitions for TEFeatureFlag
  922. teFTextBuffering     EQU     1                         ; (00000010b)
  923. teFOutlineHilite     EQU     2                         ; (00000100b)
  924. teFInlineInput          EQU        3                        ; (00001000b)
  925. teFUseTextServices    EQU        4                        ; (00010000b)
  926.  
  927. ; action for the new "bit (un)set" interface, TEFeatureFlag
  928. TEBitClear        EQU         0
  929. TEBitSet          EQU         1                         ; set the selector bit.
  930. TEBitTest         EQU         -1                        ; no change; just return the present value
  931.  
  932. ; constants for identifying the routine that called FindWord <5>
  933. teWordSelect EQU        4                        ; clickExpand to select word
  934. teWordDrag     EQU        8                        ; clickExpand to drag new word
  935. teFromFind     EQU        12                        ; FindLine called it ($0C)
  936. teFromRecal     EQU        16                        ; RecalLines called it ($10)
  937.  
  938. ; Text Edit Selectors:
  939.  
  940. teStylPaste      EQU         0
  941. teStylePaste      EQU         0
  942. teSetStyle        EQU         1
  943. teReplaceStyle    EQU         2
  944. teGetStyle        EQU         3
  945. getStylHandle    EQU         4
  946. getStyleHandle    EQU         4
  947. setStylHandle    EQU         5
  948. setStyleHandle    EQU         5
  949. getStylScrap     EQU         6
  950. getStyleScrap     EQU         6
  951. teStylInsert     EQU         7
  952. teStyleInsert     EQU         7
  953. teGetPoint        EQU         8
  954. teGetHeight       EQU         9
  955.  
  956. teContinuousStyle EQU         10
  957. setStyleScrap     EQU         11
  958. teCustomHook      EQU         12
  959. teNumStyles       EQU         13
  960. teFeatureFlag    EQU            14                        ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  961.  
  962.                   MACRO
  963.                   _TEContinuousStyle
  964.                   MOVE.W      #teContinuousStyle,-(SP)
  965.                   DC.W        $A83D                     ; _TEDispatch
  966.                   ENDM
  967.  
  968.                   MACRO
  969.                   _SetStyleScrap
  970.                   MOVE.W      #setStyleScrap,-(SP)
  971.                   DC.W        $A83D                     ; _TEDispatch
  972.                   ENDM
  973.  
  974.                   MACRO
  975.                   _TECustomHook
  976.                   MOVE.W      #teCustomHook,-(SP)
  977.                   DC.W        $A83D                     ; _TEDispatch
  978.                   ENDM
  979.  
  980.                   MACRO
  981.                   _TENumStyles
  982.                   MOVE.W      #teNumStyles,-(SP)
  983.                   DC.W        $A83D                     ; _TEDispatch
  984.                   ENDM
  985.  
  986. ; new for System 6.0.5/Script Systems 6.0.4 <1.5>
  987.                   MACRO
  988.                   _TEFeatureFlag
  989.                   MOVE.W      #teFeatureFlag,-(SP)
  990.                   DC.W        $A83D                     ; _TEDispatch
  991.                   ENDM
  992.  
  993.                    MACRO
  994.                   _TEStylPaste
  995.                   MOVE.W      #teStylPaste,-(SP)
  996.                   DC.W        $A83D                     ; _TEDispatch
  997.                   ENDM
  998.  
  999.                  MACRO
  1000.                   _TEStylePaste
  1001.                   MOVE.W      #teStylePaste,-(SP)
  1002.                   DC.W        $A83D                     ; _TEDispatch
  1003.                   ENDM
  1004.  
  1005.                   MACRO
  1006.                   _TESetStyle
  1007.                   MOVE.W      #teSetStyle,-(SP)
  1008.                   DC.W        $A83D                     ; _TEDispatch
  1009.                   ENDM
  1010.  
  1011.                   MACRO
  1012.                   _TEReplaceStyle
  1013.                   MOVE.W      #teReplaceStyle,-(SP)
  1014.                   DC.W        $A83D                     ; _TEDispatch
  1015.                   ENDM
  1016.  
  1017.                   MACRO
  1018.                   _TEGetStyl
  1019.                   MOVE.W      #teGetStyle,-(SP)
  1020.                   DC.W        $A83D                     ; _TEDispatch
  1021.                   ENDM
  1022.  
  1023.                   MACRO
  1024.                   _TEGetStyle
  1025.                   MOVE.W      #teGetStyle,-(SP)
  1026.                   DC.W        $A83D                     ; _TEDispatch
  1027.                   ENDM
  1028.  
  1029.                    MACRO
  1030.                   _GetStylHandle
  1031.                   MOVE.W      #getStylHandle,-(SP)
  1032.                   DC.W        $A83D                     ; _TEDispatch
  1033.                   ENDM
  1034.  
  1035.                  MACRO
  1036.                   _GetStyleHandle
  1037.                   MOVE.W      #getStyleHandle,-(SP)
  1038.                   DC.W        $A83D                     ; _TEDispatch
  1039.                   ENDM
  1040.  
  1041.                   MACRO
  1042.                   _SetStylHandle
  1043.                   MOVE.W      #setStylHandle,-(SP)
  1044.                   DC.W        $A83D                     ; _TEDispatch
  1045.                   ENDM
  1046.  
  1047.                   MACRO
  1048.                   _SetStyleHandle
  1049.                   MOVE.W      #setStyleHandle,-(SP)
  1050.                   DC.W        $A83D                     ; _TEDispatch
  1051.                   ENDM
  1052.  
  1053.                    MACRO
  1054.                   _GetStylScrap
  1055.                   MOVE.W      #getStylScrap,-(SP)
  1056.                   DC.W        $A83D                     ; _TEDispatch
  1057.                   ENDM
  1058.  
  1059.                  MACRO
  1060.                   _GetStyleScrap
  1061.                   MOVE.W      #getStyleScrap,-(SP)
  1062.                   DC.W        $A83D                     ; _TEDispatch
  1063.                   ENDM
  1064.  
  1065.                   MACRO
  1066.                   _TEStylInsert
  1067.                   MOVE.W      #teStylInsert,-(SP)
  1068.                   DC.W        $A83D                     ; _TEDispatch
  1069.                   ENDM
  1070.  
  1071.                   MACRO
  1072.                   _TEStyleInsert
  1073.                   MOVE.W      #teStyleInsert,-(SP)
  1074.                   DC.W        $A83D                     ; _TEDispatch
  1075.                   ENDM
  1076.  
  1077.                   MACRO
  1078.                   _TEGetPoint
  1079.                   MOVE.W      #teGetPoint,-(SP)
  1080.                   DC.W        $A83D                     ; _TEDispatch
  1081.                   ENDM
  1082.  
  1083.                   MACRO
  1084.                   _TEGetHeight
  1085.                   MOVE.W      #teGetHeight,-(SP)
  1086.                   DC.W        $A83D                     ; _TEDispatch
  1087.                   ENDM
  1088.                 
  1089.                 MACRO
  1090.                 _AppendDITL
  1091.                 MOVE.W        #AppendDITL,-(SP)
  1092.                 MOVE.L        SP,A0
  1093.                 _CommToolboxDispatch
  1094.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1095.                 ENDM
  1096.                 
  1097.                 MACRO
  1098.                 _CountDITL
  1099.                 MOVE.W        #CountDITL,-(SP)
  1100.                 MOVE.L        SP,A0
  1101.                 _CommToolboxDispatch
  1102.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1103.                 ENDM
  1104.                 
  1105.                 MACRO
  1106.                 _ShortenDITL
  1107.                 MOVE.W        #ShortenDITL,-(SP)
  1108.                 MOVE.L        SP,A0
  1109.                 _CommToolboxDispatch
  1110.                 ADDA.W        #$2,SP                    ; Pop the Selector back off
  1111.                 ENDM
  1112.  
  1113.                   ENDIF
  1114.  
  1115.     ENDIF    ; ...already included